CC = gcc
RM = rm -f
OBJS = *.o test test_struct

CFLAGS = -Wall -g

all: test test_struct

test: test.c c_hashtable
	$(CC) -o test test.c c_hashtable.o $(CFLAGS)

test_struct: test_struct.c c_hashtable
	$(CC) -o test_struct test_struct.c c_hashtable.o $(CFLAGS)
	
c_hashtable: c_hashtable.c
	$(CC) -o c_hashtable.o -c c_hashtable.c $(CFLAGS)

.PHONY:clean
clean:
	$(RM) $(OBJS)

